﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="OPRStatisticbyQuarterPID.aspx.cs" Inherits="StatisticData_TimeStatistic_PRTimeStatisticPID_PRStatisticbyQuarterPID" Title="选择产品类型统计一次合格率" %>

<%@ Register Assembly="ZedGraph.Web" Namespace="ZedGraph.Web" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
    <div>
    <br />
        <asp:Panel ID="Panel2" runat="server" Height="24px">   
    选择要查询的年份：<asp:DropDownList ID="DropDownList2" runat="server" AutoPostBack="True">
    </asp:DropDownList>
        </asp:Panel> 
    <br />
        <asp:Panel ID="Panel1" runat="server">
    选择要查询的产品类型：<asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" 
                Height="24px" Width="225px">
    </asp:DropDownList>
    &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<asp:Button ID="Button1" runat="server" OnClick="Button1_Click"
        Text="查 询" />
        </asp:Panel>
    <br />
    按日历季统计一次合格率情况：
    <br />
    <table style="width: 939px; height: 237px">
        <tr>
            <td style="vertical-align: top; width: 40px; height: 138px">
                <br />
                <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                    BackColor="White" BorderColor="White" BorderStyle="Ridge" 
                    BorderWidth="2px" CellPadding="3"
                    CellSpacing="1" EmptyDataText="没有相关数据" GridLines="None" OnPageIndexChanging="GridView1_PageIndexChanging"
                    Width="280px">
                    <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
                    <Columns>
                        <asp:BoundField DataField="DayTime" HeaderText="日期" />
                        <asp:BoundField DataField="Total" HeaderText="检验数" />
<asp:BoundField DataField="element" HeaderText="合格数"></asp:BoundField>
                        <asp:BoundField DataField="Quantity" HeaderText="合格率" HtmlEncode="False" 
                            DataFormatString="{0:F3}"/>
                    </Columns>
                    <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
                    <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
                    <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
                </asp:GridView>
            </td>
            <td style="width: 238px; height: 138px; vertical-align: top;">
                <cc1:zedgraphweb id="ZedGraphWeb1" runat="server" height="375" onrendergraph="ZedGraphWeb1_RenderGraph"
                    visible="False" width="800">
<XAxis AxisColor="Black" Cross="0" IsTicsBetweenLabels="True" IsZeroLine="False" IsOmitMag="False" IsUseTenPower="False" IsShowTitle="True" MinSpace="0" IsVisible="True" Title="" IsPreventLabelOverlap="True" CrossAuto="True" Type="Linear">
<FontSpec Size="14" Angle="0" IsUnderline="False" Family="Arial" IsBold="True" StringAlignment="Center" FontColor="Black" IsItalic="False">
<Fill AlignV="Center" Color="White" IsVisible="True" ColorOpacity="100" Type="None" RangeMin="0" AlignH="Center" IsScaled="True" RangeMax="0"></Fill>

<Border Color="Black" IsVisible="False" InflateFactor="0" Width="1"></Border>
</FontSpec>

<MinorGrid Color="Black" IsVisible="False" DashOn="1" DashOff="5" PenWidth="1"></MinorGrid>

<MinorTic IsOutside="True" IsOpposite="True" Size="5" Color="Black" IsInside="True" PenWidth="1"></MinorTic>

<MajorTic IsOutside="True" IsOpposite="True" Size="5" Color="Black" IsInside="True" PenWidth="1"></MajorTic>

<Scale MinGrace="0.1" MaxGrace="0.1" MajorStepAuto="True" MinorUnit="Day" MinorStep="1" Min="0" Max="0" Mag="0" FormatAuto="False" MaxAuto="True" IsReverse="False" Format="g" MinAuto="True" MagAuto="False" Align="Center" MajorUnit="Day" MinorStepAuto="True" MajorStep="1">
<FontSpec Size="14" Angle="0" IsUnderline="False" Family="Arial" IsBold="False" StringAlignment="Center" FontColor="Black" IsItalic="False">
<Fill AlignV="Center" Color="White" IsVisible="True" ColorOpacity="100" Type="None" RangeMin="0" AlignH="Center" IsScaled="True" RangeMax="0"></Fill>

<Border Color="Black" IsVisible="False" InflateFactor="0" Width="1"></Border>
</FontSpec>
</Scale>

<MajorGrid Color="Black" IsVisible="False" DashOn="1" DashOff="5" PenWidth="1"></MajorGrid>
</XAxis>

<Y2Axis AxisColor="Black" Cross="0" IsTicsBetweenLabels="True" IsZeroLine="True" IsOmitMag="False" IsUseTenPower="False" IsShowTitle="True" MinSpace="0" IsVisible="False" Title="" IsPreventLabelOverlap="True" CrossAuto="True" Type="Linear">
<FontSpec Size="14" Angle="0" IsUnderline="False" Family="Arial" IsBold="True" StringAlignment="Center" FontColor="Black" IsItalic="False">
<Fill AlignV="Center" Color="White" IsVisible="True" ColorOpacity="100" Type="None" RangeMin="0" AlignH="Center" IsScaled="True" RangeMax="0"></Fill>

<Border Color="Black" IsVisible="False" InflateFactor="0" Width="1"></Border>
</FontSpec>

<MinorGrid Color="Black" IsVisible="False" DashOn="1" DashOff="5" PenWidth="1"></MinorGrid>

<MinorTic IsOutside="True" IsOpposite="True" Size="5" Color="Black" IsInside="True" PenWidth="1"></MinorTic>

<MajorTic IsOutside="True" IsOpposite="True" Size="5" Color="Black" IsInside="True" PenWidth="1"></MajorTic>

<Scale MinGrace="0.1" MaxGrace="0.1" MajorStepAuto="True" MinorUnit="Day" MinorStep="1" Min="0" Max="0" Mag="0" FormatAuto="False" MaxAuto="True" IsReverse="False" Format="g" MinAuto="True" MagAuto="False" Align="Center" MajorUnit="Day" MinorStepAuto="True" MajorStep="1">
<FontSpec Size="14" Angle="-90" IsUnderline="False" Family="Arial" IsBold="False" StringAlignment="Center" FontColor="Black" IsItalic="False">
<Fill AlignV="Center" Color="White" IsVisible="True" ColorOpacity="100" Type="None" RangeMin="0" AlignH="Center" IsScaled="True" RangeMax="0"></Fill>

<Border Color="Black" IsVisible="False" InflateFactor="0" Width="1"></Border>
</FontSpec>
</Scale>

<MajorGrid Color="Black" IsVisible="False" DashOn="1" DashOff="5" PenWidth="1"></MajorGrid>
</Y2Axis>

<MasterPaneBorder Color="Black" IsVisible="True" InflateFactor="0" Width="1"></MasterPaneBorder>

<MasterPaneFill AlignV="Center" Color="White" IsVisible="True" ColorOpacity="100" Type="Solid" RangeMin="0" AlignH="Center" IsScaled="True" RangeMax="0"></MasterPaneFill>

<PaneBorder Color="Black" IsVisible="True" InflateFactor="0" Width="1"></PaneBorder>

<YAxis AxisColor="Black" Cross="0" IsTicsBetweenLabels="True" IsZeroLine="True" IsOmitMag="False" IsUseTenPower="False" IsShowTitle="True" MinSpace="0" IsVisible="True" Title="" IsPreventLabelOverlap="True" CrossAuto="True" Type="Linear">
<FontSpec Size="14" Angle="-180" IsUnderline="False" Family="Arial" IsBold="True" StringAlignment="Center" FontColor="Black" IsItalic="False">
<Fill AlignV="Center" Color="White" IsVisible="True" ColorOpacity="100" Type="None" RangeMin="0" AlignH="Center" IsScaled="True" RangeMax="0"></Fill>

<Border Color="Black" IsVisible="False" InflateFactor="0" Width="1"></Border>
</FontSpec>

<MinorGrid Color="Black" IsVisible="False" DashOn="1" DashOff="5" PenWidth="1"></MinorGrid>

<MinorTic IsOutside="True" IsOpposite="True" Size="5" Color="Black" IsInside="True" PenWidth="1"></MinorTic>

<MajorTic IsOutside="True" IsOpposite="True" Size="5" Color="Black" IsInside="True" PenWidth="1"></MajorTic>

<Scale MinGrace="0.1" MaxGrace="0.1" MajorStepAuto="True" MinorUnit="Day" MinorStep="1" Min="0" Max="0" Mag="0" FormatAuto="False" MaxAuto="True" IsReverse="False" Format="g" MinAuto="True" MagAuto="False" Align="Center" MajorUnit="Day" MinorStepAuto="True" MajorStep="1">
<FontSpec Size="14" Angle="90" IsUnderline="False" Family="Arial" IsBold="False" StringAlignment="Center" FontColor="Black" IsItalic="False">
<Fill AlignV="Center" Color="White" IsVisible="True" ColorOpacity="100" Type="None" RangeMin="0" AlignH="Center" IsScaled="True" RangeMax="0"></Fill>

<Border Color="Black" IsVisible="False" InflateFactor="0" Width="1"></Border>
</FontSpec>
</Scale>

<MajorGrid Color="Black" IsVisible="False" DashOn="1" DashOff="5" PenWidth="1"></MajorGrid>
</YAxis>

<PaneFill AlignV="Center" Color="White" IsVisible="True" ColorOpacity="100" Type="Solid" RangeMin="0" AlignH="Center" IsScaled="True" RangeMax="0"></PaneFill>

<ChartFill AlignV="Center" Color="White" IsVisible="True" ColorOpacity="100" Type="Brush" RangeMin="0" AlignH="Center" IsScaled="True" RangeMax="0"></ChartFill>

<ChartBorder Color="Black" IsVisible="True" InflateFactor="0" Width="1"></ChartBorder>

<FontSpec Size="16" Angle="0" IsUnderline="False" Family="Arial" IsBold="True" StringAlignment="Center" FontColor="Black" IsItalic="False">
<Fill AlignV="Center" Color="White" IsVisible="True" ColorOpacity="100" Type="None" RangeMin="0" AlignH="Center" IsScaled="True" RangeMax="0"></Fill>

<Border Color="Black" IsVisible="False" InflateFactor="0" Width="1"></Border>
</FontSpec>

<Margins Top="10" Left="10" Bottom="10" Right="10"></Margins>

<Legend IsReverse="False" IsHStack="True" IsVisible="True" Position="Top">
<Location AlignV="Center" CoordinateFrame="ChartFraction" X="0" Height="0" Y="0" Width="0" AlignH="Left">
<TopLeft X="0" Y="0"></TopLeft>

<BottomRight X="0" Y="0"></BottomRight>
</Location>

<Fill AlignV="Center" Color="White" IsVisible="True" ColorOpacity="100" Type="Brush" RangeMin="0" AlignH="Center" IsScaled="True" RangeMax="0"></Fill>

<Border Color="Black" IsVisible="True" InflateFactor="0" Width="1"></Border>

<FontSpec Size="12" Angle="0" IsUnderline="False" Family="Arial" IsBold="False" StringAlignment="Center" FontColor="Black" IsItalic="False">
<Fill AlignV="Center" Color="White" IsVisible="True" ColorOpacity="100" Type="Solid" RangeMin="0" AlignH="Center" IsScaled="True" RangeMax="0"></Fill>

<Border Color="Black" IsVisible="False" InflateFactor="0" Width="1"></Border>
</FontSpec>
</Legend>
</cc1:zedgraphweb>
            </td>
        </tr>
    </table>
    <br />
                <br />
    <br />
    <br />
    </div> 
    </ContentTemplate> 
    </asp:UpdatePanel> 
</asp:Content>

